# 修改 Dockerfile（锁定基础镜像版本）
FROM rust:1.77.0 as builder  # 替换原来的 latest
WORKDIR /app
COPY rust-toolchain.toml .  # 确保版本一致
RUN apt-get update && apt-get install -y \
    ca-certificates && \
    rm -rf /var/lib/apt/lists/*  # 最小化依赖

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \
    ca-certificates \  # 仅保留必要依赖
    && rm -rf /var/lib/apt/lists/*
